package service.impl;

import mapper.InvitationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import service.InvitationSevice;
import pojo.invitation;

import java.util.List;

@Transactional
@Service("InvitationSevice")
public class InvitationServiceImpl implements InvitationSevice {

    @Autowired
    InvitationMapper invitationMapperat;
    public List<invitation> selectAll(String title) {


        return invitationMapperat.selectAll(title);
    }
    public int delete(int id){
        return invitationMapperat.delete(id);
    }
}
